<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<style type="text/css" title="currentStyle">
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
		</style>
<script type="text/javascript">
    var t=jQuery.noConflict();
			t(document).ready(function() {
				t('#example').dataTable( {
					"sPaginationType": "full_numbers"
				} );
			} );
</script>

 <h3>LISTADO DE PERIODOS ACADEMICOS</h3>
<div id="tabla" >
   
    <table id="example" class="table table-bordered table-striped">
        
        <thead>
            <tr>
                <th>DESCRIPCION </th>
                <th>FECHA INICIO</th>
                <th>FECHA FINAL</th>
                <th>ESTADO</th>
                    <th>OPC1</th>
                    <th>OPC2</th>
                <!--

                <th colspan="2" align ="center">Acciones</th>
                -->
            </tr>
        </thead>
        <tbody>
            <?php
            if (!empty($periodos)) {
                foreach ($periodos as $i => $row) {
                    ?>
                    <tr>
                        <td><?php echo $row['descripcion_lec'] ?></td>
                        <td><?php echo date("m/d/Y", strtotime($row['fecha_inicio_lec'])) ?></td>
                        <td><?php echo date("m/d/Y", strtotime($row['fecha_fin_lec'])) ?></td>
                        <td><?php echo $row['estado_lec'] ?></td>
                        <td>
                            <a href='<?php echo (base_url() . "admin.php/periodo/actualizar/upd/" . $row['ide_lec']) ?>'>
                                <i class="icon-edit"></i>Edit</a>
                        </td>
                        <td>
                            <a href='<?php echo (base_url() . "admin.php/periodo/actualizar/del/" . $row['ide_lec']) ?>'>
                                <i class="icon-remove"></i>Elim</a></td>

                    </tr>
                    <?php
                }
            }
            ?>
        </tbody>
    </table>        
</div>
<div id="agregar">
    <form class="well" action="<?php echo base_url() . "admin.php/periodo/crear" ?>" method="post" >
        <input class="btn" type="submit"  value="Crear Nueva Periodo">


    </form> 
</div>
